package cn.jdemo.juc.highquality.rpc_brief.demo;

import java.lang.reflect.Method;

public class Demo01 {
	public static void main(String[] args) {
			try {
				IPerson person01 = new Person01();
				Method method = IPerson.class.getMethod("getName",String.class);
				Object invoke = method.invoke(person01, "will");
				System.out.println(invoke);
			} catch (Exception e) {
				
			}
		
	}

}
